export default {
  // 开启命名空间
  namespaced: true,
  state: () => ({
    list: JSON.parse(window.localStorage.getItem('list') || '[]')
  }),
  mutations: {
    savelist (state, hao) {
      state.list = hao
      // this.saveLocal(hao)
      window.localStorage.setItem('list', JSON.stringify(state.list))
    }
  },
  getters: {}
}
